package glodal

import (
	"github.com/go-redis/redis/v8"
	"github.com/gorilla/websocket"
	"gorm.io/gorm"
)

var (
	DB  *gorm.DB
	Rdb *redis.Client
)
var Upgrader = websocket.Upgrader{
	ReadBufferSize:  1024,
	WriteBufferSize: 1024,
}
var CliMap map[int]Node = make(map[int]Node)

type Node struct {
	Conn *websocket.Conn
	Data chan []byte
}
